package com.coding.kan_yi_dao.controller;


import com.coding.kan_yi_dao.common.Result;
import com.coding.kan_yi_dao.entity.OrderItem;
import com.coding.kan_yi_dao.service.impl.OrderItemServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 砍一刀，不买就砍你一刀
 * @since 2023-09-20
 */
@Api(tags = "商品下单详细表")
@RestController
@RequestMapping("/order-item")
@CrossOrigin
public class OrderItemController {

    @Resource
    OrderItemServiceImpl orderItemService;

    @ApiOperation(value = "全查询")
    @GetMapping("/go_select/order")
    public Result go_select(OrderItem orderItem){
        return orderItemService.go_select(orderItem);
    }

}
